package de.mp3player.app;

import java.net.URL;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;

import de.mp3player.gui.Gui;

public class App {

	public static void main(String[] args) {
		Gui gui = new Gui();
		gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		gui.setSize(1024,768);
		gui.setTitle("MP3-Player");
		gui.setVisible(true);

	}

	public static Icon makeIcon(String string) {
		URL url = App.class.getResource(string);
		if(url != null)
			return new ImageIcon(url);
		return null;
	}

}
